﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AbstractSolver;
using Solvers;
using SLAU;
using System.IO;
using Interfaces;
using SLAU_FileDAO;

namespace iface_SLAU_solver
{
    class Program
    {
        static void Main(string[] args)
        {
            IDAO dao = new FileDAO("input.txt", "output.txt");
            SLAU.SLAU system = dao.LoadSLAU();

            Solver slv = new ZeidelNonStatic(system, 0.0001);
            slv.Solve();

            if (slv.Solved)
            {
                dao.SaveSolution(slv.Solution);
            }
            else
            {
                Console.Write("Error!");
            }
        }
    }
}
